
<section id="mydatas" class="_hide" >
<form id="formx" name="formx" action="<?=base_url().'index.php/main_control/entrance_do'?>" method="post">
<input type="text"  name="_openId" id="_openId" placeholder="openId"  value="">
<input type="text"  name="_name" id="_name" placeholder="name" value="">
<input id="uid"  name="_uid" placeholder="_uid" type="text" class="form-control"  value="" >
<input id="state"  name="_state" placeholder="_state" type="text" class="form-control"  value="" >
<input id="flag"  name="_flag" placeholder="_flag" type="text" class="form-control"  value="" >
</form>
</section>


<section id="footer">
<div id="_buttom_menu" class="navbar-fixed-bottom">
<div class="col-xs-3"><button type="button" class="btn btn-default" onClick="tijiao(3)">回到首页</button></div>
<div class="col-xs-3"><button type="button" class="btn btn-default" onClick="tijiao(2)">推荐客户</button></div>
<div class="col-xs-3">
<div class="btn-group dropup">
<button type="button" class="btn btn-default dropdown-toggle" 
data-toggle="dropdown">
个人中心<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onClick="tijiao(4)">我的信息</a></li>
<li><a href="#" onClick="tijiao(5)">我的客户</a></li>
</ul>
</div>    
</div>
<div class="col-xs-3"><button type="button" class="btn btn-default">。。。</button></div>
</div>
</section>

<script type="text/javascript">
/**
 * _footer.php最好只用于index.php以外的页面
 */

// 使用缓存
window.onload = function() { 
	var openId = sessionStorage.getItem("openId"); 
	var uid = sessionStorage.getItem("uid"); 
	var name = sessionStorage.getItem("name"); 
	var state = sessionStorage.getItem("state"); 
	var flag = sessionStorage.getItem("flag"); 

	$('#_openId').val(openId);
	$('#_uid').val(uid);
	$('#_name').val(name);
	$('#_state').val(state);
	$('#_flag').val(flag);
}

/**
 * flag:
	 home:3  tuijian:2  
 */
function tijiao(flag){
	$('#_flag').val(flag);
    document.formx.submit();
}

</script>

